package Computer_Builder_04.Builder;
import Computer_Builder_04.AbstractBuilder.ComputerBuilder;
import Computer_Builder_04.Product.Product;

public class ServerBuilder extends ComputerBuilder {

    public void buildCPU() {
        this.computer.setCPU("组装服务器的CPU Intel U9-285H");
    }


    public void buildRAM() {
        this.computer.setRAM("组装服务器的内存 64G");
    }


    public void buildHDD() {
        this.computer.setHDD("组装服务器的硬盘 4T SSD");
    }


    public void buildMonitor() {
        this.computer.setMonitor("服务器无显示器");
    }

    public void buildHost() {
        this.computer.setHost("组装服务器的主机 SuperServer 9000");
    }

    public Product getComputer() {
        System.out.println("组装服务器");
        return this.computer;
    }
}
